package com.ruoyi.hcmain.domain;

import java.math.BigDecimal;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 出库列对象 hc_dispatch
 * 
 * @author ruoyi
 * @date 2023-08-15
 */
@Data
public class HcDispatch extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 物料 */
    @Excel(name = "物料")
    private Long stuffId;

    /** 数量 */
    @Excel(name = "数量")
    private Long counts;

    /** 部门 */
    @Excel(name = "部门")
    private String department;

    @Excel(name = "状态（默认0")
    private Integer status;

    @Excel(name = "部门")
    @Setter
    @Getter
    private Integer outId;

    private HcStuff stuff;

    private HcOutinfo outinfo;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal prices;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setStuffId(Long stuffId) 
    {
        this.stuffId = stuffId;
    }

    public Long getStuffId() 
    {
        return stuffId;
    }
    public void setCounts(Long counts) 
    {
        this.counts = counts;
    }

    public Long getCounts() 
    {
        return counts;
    }
    public void setDepartment(String department) 
    {
        this.department = department;
    }

    public String getDepartment() 
    {
        return department;
    }
    public void setPrices(BigDecimal prices) 
    {
        this.prices = prices;
    }

    public BigDecimal getPrices() 
    {
        return prices;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("stuffId", getStuffId())
            .append("counts", getCounts())
            .append("createTime", getCreateTime())
            .append("department", getDepartment())
            .append("prices", getPrices())
            .toString();
    }
}
